package com.wiggin.test.bean;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.stereotype.Component;

/**
 * @program: spring
 * @description:
 * @author: zhangweijian
 * @create: 2020-12-19 14:05
 **/
public class IgnoreDependencyHelper implements BeanFactoryPostProcessor {
	@Override
	public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
		beanFactory.ignoreDependencyInterface(IgnoreDependencyByInterfaceSrv.class);
	}
}
